<top-title title="报价" icon="am-icon-user" mh-click=""></top-title>
<!--添加材料-->
<div class="am-padding-horizontal-sm am-padding-top">
  <form class="am-form am-form-horizontal">
    <horizontal-item config-data="{name:'搜索：',type:'text'}" ng-model="search"></horizontal-item>
    <!-- 下拉列表-->
    <div class="am-form-group">
      <div class="am-u-sm-9 mh-padding-none am-u-sm-offset-3">
        <ul class="am-list am-list-striped">
          <li class="am-list-item-text am-padding-vertical-xs" ng-repeat="feed in feeds" ng-click="feedSlected(feed)">
            {{::feed[1]}}
          </li>
        </ul>
      </div>
    </div>
    <horizontal-item-static config-data="{name:'名称：',type:'text'}" ng-model="selected.name"></horizontal-item-static>
    <horizontal-item-static config-data="{name:'规格：',type:'text'}" ng-model="selected.spec"></horizontal-item-static>
    <horizontal-item-static config-data="{name:'单位：',type:'number'}" ng-model="selected.unit"></horizontal-item-static>
    <horizontal-item config-data="{name:'材料费：',type:'number'}" ng-model="selected.relation.price"></horizontal-item>
      <!--<div class="am-form-group">-->
          <!--<label class="am-u-sm-3 am-form-label mh-padding-none" for="人工费">人工费 :&nbsp</label>-->

          <!--<div class="am-u-sm-9 mh-padding-none ">-->
              <!--<input type="number" id="人工费" class="am-input-sm am-radius am-form-field am-number-danger"-->
                     <!--style="background-color: #ebebeb;border:0;" ng-model="selected.relation.pprice">-->
          <!--</div>-->
      <!--</div>-->
    <horizontal-item config-data="{name:'人工费：',type:'number'}" ng-model="selected.relation.pprice"></horizontal-item>
    <horizontal-item config-data="{name:'数量：',type:'number'}" ng-model="num"></horizontal-item>
    <div class="mh-padding-none am-g">
      <img class="am-u-sm-3" ng-repeat="img in images track by $index" ng-src="../../{{::img}}">
    </div>
    <button type="submit" class="am-btn am-form-field am-btn-default mh-lightgreen am-radius mh-text-white"
            ng-if="showSubmit" ng-click="saveFeed(selected)">完成
    </button>
  </form>
</div>
